﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace furion.blog.Domain.MySQL
{
    [SugarTable("building")]
    public class Building : BaseModel
    {
        /// <summary>
        /// 楼盘ID 
        ///</summary>
        [SugarColumn(ColumnName = "building_id", IsPrimaryKey = true)]
        public long BuildingId { get; set; }
        /// <summary>
        /// 楼盘名称 
        ///</summary>
        [SugarColumn(ColumnName = "building_name")]
        public string BuildingName { get; set; }
        /// <summary>
        /// 均价 
        ///</summary>
        [SugarColumn(ColumnName = "average_price")]
        public decimal? AveragePrice { get; set; }
        /// <summary>
        /// 省份编码 
        ///</summary>
        [SugarColumn(ColumnName = "province_code")]
        public long? ProvinceCode { get; set; }
        /// <summary>
        /// 城市编码 
        ///</summary>
        [SugarColumn(ColumnName = "city_code")]
        public long? CityCode { get; set; }
        /// <summary>
        /// 县区编码 
        ///</summary>
        [SugarColumn(ColumnName = "country_code")]
        public long? CountryCode { get; set; }
        /// <summary>
        /// 楼盘基本信息(json格式) 
        ///</summary>
        [SugarColumn(ColumnName = "base_info")]
        public string BaseInfo { get; set; }
        /// <summary>
        /// 物业信息(json格式) 
        ///</summary>
        [SugarColumn(ColumnName = "estate_info")]
        public string EstateInfo { get; set; }
        /// <summary>
        /// 户型信息(json格式) 
        ///</summary>
        [SugarColumn(ColumnName = "unit_info")]
        public string UnitInfo { get; set; }
        /// <summary>
        /// 周边配套信息(json格式) 
        ///</summary>
        [SugarColumn(ColumnName = "matching_info")]
        public string MatchingInfo { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "created_time")]
        public DateTime? CreatedTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "created_by")]
        public long? CreatedBy { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "updated_time")]
        public DateTime? UpdatedTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "updated_by")]
        public long? UpdatedBy { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "status")]
        public string Status { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "is_delete")]
        public string IsDelete { get; set; }
       
        /// <summary>
        /// 排序(数值越大越靠前) 
        ///</summary>
        [SugarColumn(ColumnName = "order_num")]
        public int? OrderNum { get; set; }

    }
}
